home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / tools / gcc / libnixv1_0.lha / gnu / libnix-sources.lha / sources / stubs / makefile < prev   
Encoding:
Makefile  |  1995-04-19  |  608 b   |  37 lines

  1. SOURCEDIR=../../sources/stubs
  2.  
  3. include $(SOURCEDIR)/filelist
  4.  
  5. OPTIONS=-I $(SOURCEDIR)/../headers $(CFLAGS)
  6.  
  7. vpath %.c $(SOURCEDIR)
  8.  
  9. OBJECTS2=$(OBJECTS) ../nix/misc/__request.o
  10.  
  11. SUBDIRS2=$(SUBDIRS) ../nix/misc
  12.  
  13. %.o: %.c
  14.     gcc $(OPTIONS) -c $^ -o $@ 2>&1|tee $*.err
  15.     -if test ! -s $*.err; then rm $*.err; fi
  16.  
  17. .PHONY: all clean veryclean
  18.  
  19. all: libstubs.a
  20.  
  21. clean:
  22.     -rm -r $(SUBDIRS)
  23.  
  24. veryclean:
  25.     -rm -r *
  26.  
  27. $(SUBDIRS2):
  28.     mkdir $@
  29.  
  30. libstubs.a: $(SUBDIRS2) $(OBJECTS2) $(SOURCEDIR)/makefile $(SOURCEDIR)/filelist
  31.     -rm $@
  32.     ar -q /tmp/$@ $(OBJECTS2)
  33.     ranlib /tmp/$@
  34.     echo "\$$$(V)" >>/tmp/$@
  35.     cp /tmp/$@ .
  36.     rm /tmp/$@
  37.